package com.abase.site.client.open.widget.pagedetest;

import com.abase.site.client.PocAbaseHistoryHandler.HistoryTokens;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;


public class PageDeTestWidget extends Composite {

  private static PageDeTestWidgetUiBinder uiBinder = GWT.create(PageDeTestWidgetUiBinder.class);

  interface PageDeTestWidgetUiBinder extends UiBinder<Widget, PageDeTestWidget> {
  }

  public PageDeTestWidget() {
    initWidget(uiBinder.createAndBindUi(this));
  }

  @UiField Label linkLabel;


  @UiHandler("linkLabel")
  void onClick(ClickEvent e) {
    History.newItem(HistoryTokens.HOME_TOKEN.getValue());
  }

}
